FROM openjdk
MAINTAINER linmingjian

# 创建工作目录
RUN mkdir -p /home/linmingjian/workspace/app
# 将jar拷贝过去
COPY /target/docker-app.jar /home/linmingjian/workspace/app/app.jar
# 指定工作目录
WORKDIR /home/linmingjian/workspace/app
# 运行jar
ENTRYPOINT ["java", "-jar", "app.jar"]